package com.idp.web.test.entity;

import java.io.Serializable;

/**
 * 
 * 产品实体类.
 * 
 * <pre>
 * 	历史记录：
 * 	2017-06-02 Amber
 * 	新建文件
 * </pre>
 * 
 * @author
 * 
 * 		<pre>
 * SD
 * 	Amber
 * PG
 *	Amber
 * UT
 *
 * MA
 *         </pre>
 * 
 * @version $Rev$
 *
 *          <p/>
 *          $Id$
 *
 */
public class Product implements Serializable {

	private static final long serialVersionUID = 1L;

	/** id */
	private Integer id;
	/** code */
	private String code;
	/** util */
	private String util;
	/** packing */
	private Integer packing;
	/** volume */
	private Double volume;
	/** length */
	private Double length;
	/** weight */
	private Double weight;
	/** height */
	private Double height;
	/** grossWeight */
	private Double grossWeight;
	/** netWeight */
	private Double netWeight;
	/** name */
	private String name;
	/** productTypeId */
	private Integer productTypeId;
	/** productStatusId */
	private Integer productStatusId;

	private String eBayCode;

	private String amazonCode;

	private ProductType productType;

	private ProductStatus productStatus;

	private Stock stock;// 根据商品product_id 取stocknum当前库存

	public Stock getStock() {
		return stock;
	}

	public void setStock(Stock stock) {
		this.stock = stock;
	}

	/**
	 * 方法: 取得Integer
	 * 
	 * @return: Integer id
	 */
	public Integer getId() {
		return this.id;
	}

	/**
	 * 方法: 设置Integer
	 * 
	 * @param: Integer
	 *             id
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * 方法: 取得String
	 * 
	 * @return: String code
	 */
	public String getCode() {
		return this.code;
	}

	/**
	 * 方法: 设置String
	 * 
	 * @param: String
	 *             code
	 */
	public void setCode(String code) {
		this.code = code;
	}

	/**
	 * 方法: 取得String
	 * 
	 * @return: String util
	 */
	public String getUtil() {
		return this.util;
	}

	/**
	 * 方法: 设置String
	 * 
	 * @param: String
	 *             util
	 */
	public void setUtil(String util) {
		this.util = util;
	}

	/**
	 * 方法: 取得Integer
	 * 
	 * @return: Integer packing
	 */
	public Integer getPacking() {
		return this.packing;
	}

	/**
	 * 方法: 设置Integer
	 * 
	 * @param: Integer
	 *             packing
	 */
	public void setPacking(Integer packing) {
		this.packing = packing;
	}

	/**
	 * 方法: 取得Double
	 * 
	 * @return: Double volume
	 */
	public Double getVolume() {
		return this.volume;
	}

	/**
	 * 方法: 设置Double
	 * 
	 * @param: Double
	 *             volume
	 */
	public void setVolume(Double volume) {
		this.volume = volume;
	}

	/**
	 * 方法: 取得Double
	 * 
	 * @return: Double length
	 */
	public Double getLength() {
		return this.length;
	}

	/**
	 * 方法: 设置Double
	 * 
	 * @param: Double
	 *             length
	 */
	public void setLength(Double length) {
		this.length = length;
	}

	/**
	 * 方法: 取得Double
	 * 
	 * @return: Double weight
	 */
	public Double getWeight() {
		return this.weight;
	}

	/**
	 * 方法: 设置Double
	 * 
	 * @param: Double
	 *             weight
	 */
	public void setWeight(Double weight) {
		this.weight = weight;
	}

	/**
	 * 方法: 取得Double
	 * 
	 * @return: Double height
	 */
	public Double getHeight() {
		return this.height;
	}

	/**
	 * 方法: 设置Double
	 * 
	 * @param: Double
	 *             height
	 */
	public void setHeight(Double height) {
		this.height = height;
	}

	/**
	 * 方法: 取得Double
	 * 
	 * @return: Double grossWeight
	 */
	public Double getGrossWeight() {
		return this.grossWeight;
	}

	/**
	 * 方法: 设置Double
	 * 
	 * @param: Double
	 *             grossWeight
	 */
	public void setGrossWeight(Double grossWeight) {
		this.grossWeight = grossWeight;
	}

	/**
	 * 方法: 取得Double
	 * 
	 * @return: Double netWeight
	 */
	public Double getNetWeight() {
		return this.netWeight;
	}

	/**
	 * 方法: 设置Double
	 * 
	 * @param: Double
	 *             netWeight
	 */
	public void setNetWeight(Double netWeight) {
		this.netWeight = netWeight;
	}

	/**
	 * 方法: 取得String
	 * 
	 * @return: String name
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * 方法: 设置String
	 * 
	 * @param: String
	 *             name
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * 方法: 取得Integer
	 * 
	 * @return: Integer productTypeId
	 */
	public Integer getProductTypeId() {
		return this.productTypeId;
	}

	/**
	 * 方法: 设置Integer
	 * 
	 * @param: Integer
	 *             productTypeId
	 */
	public void setProductTypeId(Integer productTypeId) {
		this.productTypeId = productTypeId;
	}

	public Integer getProductStatusId() {
		return productStatusId;
	}

	public void setProductStatusId(Integer productStatusId) {
		this.productStatusId = productStatusId;
	}

	public ProductType getProductType() {
		return productType;
	}

	public void setProductType(ProductType productType) {
		this.productType = productType;
	}

	public ProductStatus getProductStatus() {
		return productStatus;
	}

	public void setProductStatus(ProductStatus productStatus) {
		this.productStatus = productStatus;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String geteBayCode() {
		return eBayCode;
	}

	public void seteBayCode(String eBayCode) {
		this.eBayCode = eBayCode;
	}

	public String getAmazonCode() {
		return amazonCode;
	}

	public void setAmazonCode(String amazonCode) {
		this.amazonCode = amazonCode;
	}
	
	@Override
	public String toString() {
		return "Product [id=" + id + ", code=" + code + ", util=" + util + ", packing=" + packing + ", volume=" + volume
				+ ", length=" + length + ", weight=" + weight + ", height=" + height + ", grossWeight=" + grossWeight
				+ ", netWeight=" + netWeight + ", name=" + name + ", productTypeId=" + productTypeId
				+ ", productStatusId=" + productStatusId + "]";
	}

}
